package com.drug.mingkang.model.vo;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.Date;

/**
 * 描述：原材料库存Vo
 * 所属项目：mingkang
 *
 * @author 依旧
 * @create 2020-09-02 08:56
 * @employ IntelliJ IDEA
 * @since 1.0.0
 */
@Data
public class MaterialInventoryVo {
    @ApiParam(name = "page", value = "页", required = true)
    private int page;
    @ApiParam(name = "limit", value = "行", required = true)
    private int limit;
    public int getPage() {
        return (page - 1) * limit;
    }
    /**
     * 库存id
     */
    private String inventoryId;
    /**
     * 原材料id
     */
    private String materialId;
    /**
     * 原材料名
     */
    private String materialName;
    /**
     * 原材料类型名称
     */
    private String typeName;
    /**
     * 数量
     */
    private Integer inventoryNum;
    /**
     * 操作时间
     */
    private Date optime;
    /**
     * 操作人
     */
    private String oper;
    /**
     * 备注
     */
    private String remark;
}